﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CloudModels
{
    /// <summary>
    /// 执行器视图模型基类
    /// </summary>
    public class ActuatorDataBase
    {
        /// <summary>
        /// 执行器id
        /// </summary>
        public int? ActuatorId { get; set; }
        /// <summary>
        /// 网关id
        /// </summary>
        public int? GatewayId { get; set; }
        /// <summary>
        /// 根据网关协议：0表示Zigbee，1表示Modbus，2表示Rfid
        /// </summary>
        public int? ProtocolType { get; set; }
        /// <summary>
        /// 执行器名称
        /// </summary>
        public string ActuatorName { get; set; }
        /// <summary>
        /// 节点id/通道id，同一个网关下保持唯一性
        /// </summary>
        public string PidOrChannelId { get; set; }
        /// <summary>
        /// 继电器类型
        /// </summary>
        public int? RelayType { get; set; }
        /// <summary>
        /// 协调器第几路
        /// </summary>
        public int? RoadNum { get; set; }
        /// <summary>
        /// 是开启
        /// </summary>
        public bool IsOpen { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreateDate { get; set; }

        /// <summary>
        /// 录入人员id
        /// </summary>
        public Guid? RegUserId { get; set; }
    }
}
